<div class="breadcrumbs">
	<%= link_to_unless_current "Add New Inform Out Of Office", :action => "inform_out_office" %> </div>

<%@leave_offices.each do |leave_office|%>
<table class="form">
	<tr>
		<th colspan="3">Personal Information</th>
	</tr>
	<tr>
		<td width="3%">1.</td>
		<td width="13%"><strong>Name :</strong></td>
		<td><%=leave_office.employee.name%></td>
	</tr>
	<tr>
		<td>2.</td>
		<td><strong>Employee No :</strong></td>
		<td><%=leave_office.employee.employee_number%></td>
	</tr>
	<tr>
		<td>3.</td>
		<td><strong>Department : </strong></td>
		<td><%=leave_office.employee.department.title unless leave_office.employee.department.nil?%></td>
	</tr>
	<tr>
		<td>4.</td>
		<td><strong>Position : </strong></td>
		<td><%=leave_office.employee.position.title unless leave_office.employee.position.nil?%></td>
	</tr>
	<tr>
		<td>5.</td>
		<td><strong>Gred : </strong></td>
		<td><%=leave_office.employee.position.gred.title unless leave_office.employee.position.gred.nil?%></td>
	</tr>
	<tr>
		<td>6.</td>
		<td><strong>From : </strong></td>
		<td> <%= leave_office.date_time_left.strftime("%d %B %Y at %I:%M %p")%></td>
	</tr>
	<tr>
		<td>7.</td>
		<td><strong>Estimated Time Return : </strong></td>
		<td><%= leave_office.date_time_left.strftime("%d %B %Y")%> at <%= leave_office.time_back.strftime("%I:%M %p")%></td>
	</tr>
	<tr>
		<td>8.</td>
		<td><strong>Destination : </strong></td>
		<td><%=leave_office.destination%></td>
	</tr>
	<tr>
		<td>9.</td>
		<td><strong>Remarks : </strong></td>
		<td><%=simple_format(leave_office.remarks)%></td>
	</tr>

</table>
<%end%>